package jonggyuni.basic;

import java.io.IOException;

public class UpperCase {

	public static void main(String[] args) throws IOException {
		int lowerCa;
		
		System.out.print("소문자를 입력하세요 : ");
		lowerCa = System.in.read();
		
		if(lowerCa >= 97 && lowerCa <= 122){// 97<=lowerCa<=122
			lowerCa = lowerCa - 32;
			System.out.println("대문자 : " + (char)lowerCa);
		}
		else{
			System.out.println("잘못 입력하셨습니다.");
		}
	}

}

